package com.softtown.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 消息实体类
 *
 * @author Dingyayong
 * @version v1.0
 * @create 2019-07-09 17:07
 **/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("sys_message")
public class SysMessageEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     * id
     * isNullAble:0
     */
    private Long id;

    /**
     * 消息发送方式
     */
    private Integer msgSendWayType;

    /**
     * 类型（字典msg_type）
     * isNullAble:0
     */
    private String type;

    /**
     * 类型名称（字典msg_type）
     * isNullAble:0
     */
    @TableField(exist=false)
    private String typeName;

    /**
     * 主题
     * isNullAble:0
     */
    private String title;

    /**
     * 内容
     * isNullAble:0
     */
    private String content;

    /**
     * 链接
     * isNullAble:1
     */
    private String linkUrl;

    /**
     * 发送者id
     * isNullAble:1
     */
    private Long senderId;

    /**
     * 发送时间
     * isNullAble:0
     */
    private Date sendDate;

    /**
     * 接收者id
     * isNullAble:0
     */
    private Long receiverId;

    /**
     * 公司相关id
     * isNullAble:0
     */
    private Long msgCompId;

    /**
     * 公司名称
     * isNullAble:0
     */
    @TableField(exist=false)
    private String compName;

    /**
     * 是否已读
     * isNullAble:1
     */
    private Integer isRead;

    /**
     * 创建者
     * isNullAble:1
     */
    private Long creator;

    /**
     * 创建时间
     * isNullAble:1
     */
    private Date createDate;

    /**
     * 更新者
     * isNullAble:1
     */
    private Long updater;

    /**
     * 更新时间
     * isNullAble:1
     */
    private Date updateDate;

    /**
     * 更新时间戳
     * isNullAble:1
     */
    private String updateTimestamp;

    /**
     * 逻辑删除
     * isNullAble:1,defaultVal:0
     */
    private Integer isDeleted;
}

